package gui.pannelPartie.MatchList;

import java.awt.event.ActionListener;

import javax.swing.JCheckBox;

import core.Exemp;

public class CheckBox extends JCheckBox {

	private static final long serialVersionUID = -3680780308036725405L;

	public CheckBox(String team,ActionListener a){
		addActionListener(a);
		refresh(team);
	}

	public void refresh(String team){
		setSelected(team.equals(Exemp.EXEMP.toString()));
		setEnabled(!(team.equals(Exemp.EXEMP.toString())));
	}
	
}
